package com.bluesky.comm;

public class ServiceExceptionUtils {

    public static ServiceException exception(String code,String msg){
        return new ServiceException(code,msg);
    }
    public static ServiceException exception(String msg)
    {
        return new ServiceException(ResultUtils.FAIL,msg);
    }
    public static void throwException(String msg)
    {
        throw new ServiceException(ResultUtils.FAIL,msg);
    }
    public static void throwException(String code,String msg)
    {
        throw new ServiceException(code,msg);
    }
}
